package com.example.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Data;

/**
 * <p>
 * 物料采购表
 * </p>
 *
 * @author baomidou
 * @since 2025-05-22
 */
@Data
@TableName("material_purchase")
public class MaterialPurchase implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 采购编号
     */
    @TableId(value = "purchase_id", type = IdType.AUTO)
    private Integer purchaseId;

    /**
     * 物料名称
     */
    private String materialName;

    /**
     * 部门ID
     */
    private Integer deptId;

    /**
     * 人员工号
     */
    private Integer personId;

    /**
     * 采购数量
     */
    private Integer purchaseQuantity;

    /**
     * 实际数量
     */
    private Integer actualQuantity;

    /**
     * 采购理由
     */
    private String purchaseReason;

    /**
     * 审批情况 0-未审核 1-已审核 2-不通过
     */
    private Integer auditStatus;

    /**
     * 审批意见
     */
    private String auditComment;

    /**
     * 补充内容
     */
    private String additionalInfo;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    private Integer providerId;
}
